package com.wheel.core.spring;/*
 * <h3>Title:wheel-service-ant系统</h3>
 * <p>Copyright (c) 2021, wnfbx@163.com. All rights reserved.</p>
 * @author wnfbx@163.com
 */

import com.wheel.core.utils.Log;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;

/**
 * <dt>Description:WheelBootApplication</dt>
 * <dd>启动继承</dd>
 *
 * @author wnfbx@163.com
 * @version 1.0 <i>2021/1/26 10:37</i>
 * @since jdk1.7+
 */
public class WheelBootApplication {

    private static final Logger log = LoggerFactory.getLogger(WheelBootApplication.class);

    public static void run(String[] args) {
        String className = Thread.currentThread().getStackTrace()[2].getClassName();
        try {
            SpringApplication.run(Class.forName(className), args);
        } catch (ClassNotFoundException e) {
        }
        Log.info(log, "============= SpringBoot Start Success =============");
    }
}
